<div class="easyui-tabs" data-options="fit:true,plain:true">
    <div title="安装日志">
        <!-- data-options="fitColumns:true,fit:true,singleSelect:true,rownumbers:true" -->
        <table class="easyui-datagrid" id="operation_intall_logs" pagination="true" pageSize="50" rownumbers="true"
            nowrap="false" singleSelect="true" pageList="[50,100,150,300]" tabPosition="bottom" fitColumns="true" fit="true"
            showFooter="true" striped="false" data-options="" toolbar="#operation-install-logs-datagrid-toolbar" url="/admin/operation/logs"
            width="100%">
            <thead>
                <th data-options="field:'codeserial',sortable:false,align:'center',width:100">设备编号</th>
                <th data-options="field:'device_address',sortable:false,align:'center',width:100">安装位置</th>
                <th data-options="field:'user',sortable:false,align:'center',width:100">安装人</th>
                <th data-options="field:'created_time',sortable:false,align:'center',width:100">安装日期</th>
            </thead>
        </table>
    </div>
    <!--<div title="巡检日志">-->
    <!--<table class="easyui-datagrid" id="aaa" data-options="fitColumns:true,fit:true,singleSelect:true,rownumbers:true" toolbar="#operation-check-logs-datagrid-toolbar" url="/admin/operation/check_logs">-->
    <!--<thead>-->
    <!--<th data-options="field:'codeserial',sortable:false,align:'center',width:100">设备编号</th>-->
    <!--<th data-options="field:'device_address',sortable:false,align:'center',width:100">设备位置</th>-->
    <!--<th data-options="field:'area',sortable:false,align:'center',width:100">故障处理方式</th>-->
    <!--<th data-options="field:'cycle',sortable:false,align:'center',width:100">维护人</th>-->
    <!--<th data-options="field:'cycle',sortable:false,align:'center',width:100">维护日期</th>-->
    <!--<th data-options="field:'id',sortable:false,align:'center',width:100">管理员操作</th>-->
    <!--</thead>-->
    <!--</table>-->
    <!--</div>-->
</div>
<div id="operation-install-logs-datagrid-toolbar" style="padding:5px;height:auto">
    <form style="margin: 10px;">
        <label for="install_keyword">关键字：</label>
        <input type="text" id="install_keyword" class="easyui-textbox" style="width:200px">
        <select class="easyui-combobox" id="install_key_type">
            <option value="-1">全部条件</option>
            <option value="1">设备编号</option>
            <option value="2">安装人</option>
        </select>
        <a href="javascript:void(0);" onclick="OperationInstallLogsModule.search(this);" class="easyui-linkbutton"
            iconCls="icons-table-table">查询</a>
    </form>
    <a href="javascript:void(0);" class="easyui-linkbutton" style="margin-left: 20px;" data-options="plain:true,iconCls:'icons-table-table_refresh'"
        onclick="OperationInstallLogsModule.refresh()">刷新</a>
</div>

<div id="operation-check-logs-datagrid-toolbar" style="padding:5px;height:auto">
    <form style="margin: 10px;">
        <label for="log_keyword">关键字：</label>
        <input type="text" id="log_keyword" class="easyui-textbox" style="width:200px">
        <select class="easyui-combobox" id="log_key_type">
            <option value="-1">全部条件</option>
            <option value="1">设备编号</option>
            <option value="2">登记人</option>
        </select>
        <label for="log_deal_type">故障处理方式：</label>
        <select class="easyui-combobox" id="log_deal_type">
            <option value="-1">全部</option>
            <option value="1">现场维修</option>
            <option value="2">设备更换</option>
            <option value="3">其他</option>
        </select>
        <a href="javascript:void(0);" onclick="OperationCheckLogsModule.search(this);" class="easyui-linkbutton"
            iconCls="icons-table-table">查询</a>
    </form>
</div>

<script type="text/javascript">

    var OperationInstallLogsModule = {
        dialog: '#globel-dialog-div',
        datagrid: '#operation_intall_logs',

        //数据查询
        search: function () {
            var keyword = $('#install_keyword').val();
            var key_type = $('#install_key_type').combobox('getValue');
            $('#operation_intall_logs').datagrid("load", {
                keyword: keyword,
                key_type: key_type,
            });
        },
        //刷新
        refresh: function () {
            $(this.datagrid).datagrid('reload');
        },
    };
    var OperationCheckLogsModule = {
        dialog: '#globel-dialog-div',
        datagrid: '#operation_check_logs',

        //数据查询
        search: function () {
            var keyword = 111;
            $('#operation_check_logs').datagrid("load", {
                keyword: keyword
            });
        },

    };
</script>